import request from '@/utils/request'

// 获取仪表盘统计数据
export function getDashboardStats() {
  return request({
    url: '/v1/dashboard/stats',
    method: 'get'
  })
}

// 获取用户增长趋势数据
export function getUserGrowthTrend(params) {
  return request({
    url: '/v1/dashboard/user-growth',
    method: 'get',
    params
  })
}

// 获取系统访问统计数据
export function getSystemAccessStats(params) {
  return request({
    url: '/v1/dashboard/access-stats',
    method: 'get',
    params
  })
}

// 获取最近活动数据
export function getRecentActivities(params) {
  return request({
    url: '/v1/dashboard/recent-activities',
    method: 'get',
    params
  })
}

// 获取热门内容统计
export function getPopularContent() {
  return request({
    url: '/v1/dashboard/popular-content',
    method: 'get'
  })
}

// 获取系统性能指标
export function getSystemMetrics() {
  return request({
    url: '/v1/dashboard/system-metrics',
    method: 'get'
  })
}

// 获取实时在线用户数
export function getOnlineUsers() {
  return request({
    url: '/v1/dashboard/online-users',
    method: 'get'
  })
}

// 获取今日数据概览
export function getTodayOverview() {
  return request({
    url: '/v1/dashboard/today-overview',
    method: 'get'
  })
}
